const express = require('express');
const router = express.Router();

import { 
  getmycptt,
  gethiscptt,
  getranking,
  addcptt,
  getdelcptt,
  delcptt,
  recovercptt,
  deepdelcptt,
} from '@controllers/ht/htcp'

//中间件
import { adminVerify } from '@utils/middleware'
router.use(adminVerify)

router.get('/getmycptt',getmycptt)

router.get('/gethiscptt',gethiscptt)

router.get('/getranking',getranking)

router.post('/addcptt',addcptt)

router.get('/getdelcptt',getdelcptt)

router.put('/delcptt',delcptt)

router.put('/recovercptt',recovercptt)

router.delete('/deepdelcptt',deepdelcptt)

module.exports = router